package com.bootdo.common.service;

import com.bootdo.common.domain.DictDO;
import com.bootdo.system.domain.UserDO;

import java.util.List;
import java.util.Map;

/**
 * 字典表
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-09-29 18:28:07
 */
public interface DictService extends CacheClean {

	DictDO get(Long id);

	List<DictDO> list(Map<String, Object> map);

	List<DictDO> listAll();

	int count(Map<String, Object> map);

	int save(DictDO sysDict);

	int update(DictDO sysDict);

	int remove(Long id);

	int batchRemove(Long[] ids);

	List<DictDO> listType();

	String getName(String type,String value);

	/**
	 * 获取爱好列表
	 * @return
     * @param userDO
	 */
	List<DictDO> getHobbyList(UserDO userDO);

	/**
	 * 获取性别列表
 	 * @return
	 */
	List<DictDO> getSexList();

	<T> T getValue(String key, Class<T> returnClass);



}
